home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr55 / lxfaq160.zip / LINUXFAQ.04 < prev    next >
Internet Message Format  |  1993-06-09  |  50KB

  1. From getrz!chsun!mcsun!news.funet.fi!hydra!klaava!wirzeniu Wed Jun  9 14:02:36 1993
  2. Xref: getrz comp.os.linux:16163 news.answers:3010
  3. Newsgroups: comp.os.linux,comp.os.linux.announce,comp.answers,news.answers
  4. Path: getrz!chsun!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  5. From: corsini@labri.greco-prog.fr
  6. Subject: Linux Frequently Asked Questions 3/5 [monthly posted]
  7. Message-ID: <1993Jun8.144658.19469@klaava.Helsinki.FI>
  8. Followup-To: poster
  9. Summary: Linux, a small and free unix-like for 386-AT computers.
  10. Sender: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  11. Reply-To: linux@numero6.greco-prog.fr
  12. Organization: Greco Prog. CNRS & LaBRI, Bordeaux France
  13. Date: Tue, 8 Jun 1993 14:46:58 GMT
  14. Approved: linux-announce@tc.cornell.edu (Lars Wirzenius)
  15. Expires: Wed, 21 Jul 1993 13:49:58 GMT
  16. Lines: 1208
  17.  
  18. Archive-name: linux-faq/part3
  19. Last-Modified: 93/06/07
  20. Version: 1.18
  21.  
  22. *********************************************************
  23. *                            *
  24. *   Answers to Frequently asked questions about Linux   *
  25. *                            *
  26. *********************************************************
  27.  
  28. This post contains Part 3 of the Linux FAQ (4 parts).
  29. It must be read *after* the 2 first parts. 
  30.  
  31. ===================================8<====>8============================
  32. CONTENTS (of this part)
  33.  
  34.     VI.     MISCELLANEOUS HINTS         (part3)
  35.     VII.    MORE HINTS            (part3)
  36.     VIII.     EMACS for LINUX            (part3)
  37.  
  38. ===================================8<====>8============================
  39.  
  40.  
  41.  
  42. VI. MISCELLANEOUS HINTS 
  43. =======================
  44. *** This section is maintained by Matt Welsh (mdw@tc.cornell.edu). Please
  45. *** mail me if you have any changes/updates/questions. Thanks -mdw
  46.  
  47. Special gcc information are located in section X. A special section is
  48. devoted to it since it's *the* compiler of Linux. I have subsectionned
  49. this part in 3 subsections: 
  50.  
  51.  
  52. VI.A Misc Information
  53. VI.B Minor/Major Information
  54.  
  55. VI.C Serial Information
  56.  
  57.  
  58. VI.A. Misc information
  59. ~~~~~~~~~~~~~~~~~~~~~~
  60.  
  61.   VI.01)  It seems that $#@! ported on linux don't run correctly, what
  62. do I do about reporting bugs?
  63.  
  64. ANSWER: (Matt Welsh) It's possible that either the program itself has a bug
  65. or that Linux has a problem that this program brings out. :) But first check
  66. that the size of the file(s) corresponds that of the files(s) on the FTP
  67. sites where it's available. If they're different, either you downloaded them
  68. incorrectly (i.e. you forgot to turn on "bin") or whoever put them on the
  69. FTP site uploaded them incorrectly. 
  70.  
  71. If that's not the problem, then post to comp.os.linux asking about the 
  72. program, to verify that it is a bug. PLEASE: when posting possible "bug 
  73. reports" include all error and output information from running/compiling
  74. the program. Just saying "it doesn't work" isn't very helpful. Also mention
  75. your specific setup, Linux version, GCC version, etc. Some of these things
  76. depend on running under certain versions and you may have missed that
  77. information. 
  78.  
  79. Note that my "ml-linux-bugs@dg-rtp.dg.com" bug reporting list has been
  80. phased out. It turns out that Linux has so few bugs, most of which are
  81. resolved on the newsgroup or through Linus before I can accumulate them
  82. and post. :) In short: if there's a bug in Linux or in Linux-ported
  83. software, it will usually be fixed in the next patchlevel or version.
  84.  
  85.  
  86.   VI.02)  Has $#@! been ported to Linux?
  87.  
  88. ANSWER: First check out the FTP sites and read the monthly INFO-SHEET,
  89. as well as the new "Linux News" and the META-FAQ's (all of which are 
  90. either available on the FTP sites and/or posted to the newsgroup as they're
  91. written). Also check out the "Linux Project Registry" (posted to the 
  92. newsgroup and on the FTP sites) which lists ongoing/current Linux projects.
  93. Also look in the "old" Linux digests and mailing-list archives, kept on
  94. tsx-11.mit.edu and nic.funet.fi. Also, see if there's a GNU(*) version
  95. of the program you're looking for (which are available everywhere).
  96. Since Linux uses GCC as its native compiler, most GNU software ports
  97. directly to Linux without problems. If all else fails, ask on the
  98. mailing list or newsgroup if the program is ported and where it's
  99. available. 
  100.  
  101.  
  102. (*) GNU stands for GNU's Not Unix, which (besides being a recursive
  103. acronym) is a project started by the Free Software Foundation (the FSF)
  104. to write a freely distributable version of Unix.  The GNU kernel is
  105. named HURD, and is based on Mach.  It is currently being written, and is
  106. not yet done.  Many of the GNU utilities, however, are completed and are
  107. much more functional than the original Unix utilities.  Since they are
  108. freely available, Linux is using them as well.
  109.  
  110.  
  111.  
  112.   VI.03)  I've ported $#@! to Linux, what should i do to add it in the 
  113. standard distribution?
  114.  
  115. ANSWER: (Matt Welsh) First read the previous Q/A, then talk to the
  116. maintainers of the various releases (MCC interim, SLS, and so on)
  117. about including your program with those releases. The best way to make
  118. programs available to the rest of the world is to upload it to one of
  119. the Linux FTP sites (such as tsx-11.mit.edu:/pub/incoming or
  120. sunsite.unc.edu:/pub/Linux/Incoming). 
  121.  
  122. BTW Whenever you submit binaries, please think that if you link them
  123. with shared libraries, this might cause problems for those who (gasp!)
  124. don't have the shared libraries installed. You can either link them
  125. using -static, and if someone wants to build a shared version on their
  126. own machine they can get the sources (which you should also make
  127. available) and build it themself. Or else provide the shared lib.
  128.  
  129.  
  130.   VI.04)  I want to port $#@! to Linux, what are the flags?
  131.  
  132. ANSWER: Recall that Linux implements subset of SYSV and POSIX, so
  133. -DUSG and -DPOSIX work in general. 
  134.  
  135. NOTE1: SIGBUS is not there, and can be safely commented out in general.
  136. NOTE2: see section related to GCC, in the third part of this FAQ, for
  137. more details. 
  138.  
  139.  
  140. VI.B. Major/Minor device number
  141. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  142. *** This section is maintained by Rick Miller, any comments,
  143. *** suggestions, remarks should be mailed to him at <rick@ee.uwm.edu>
  144. *** Last Update: April 1993
  145.  
  146. This is a list of the device names, along with Major and minor numbers,
  147. which the Linux kernel may currently recognize.  I say "may" because some
  148. of them may require patches to your kernel, others must be configured-in
  149. using the Linux kernel's "make config" routine before compiling.
  150.  
  151. My profuse thanks to all the writers of device drivers for Linux, and to
  152. all those patient folks who took the time to explain their devices to me.
  153. May they become obscenely rich.  Until then, I hope this list will help
  154. prevent driver collisions and perhaps lend a clue to a newbie or two.
  155.  
  156.  
  157.         IF YOU WANT ANY CHANGES OR ADDITIONS TO THIS LIST, *TELL ME*!
  158.  
  159.         DEVICES NOT LISTED HERE SHOULD USE MAJOR NUMBERS *ABOVE 127*
  160.         UNTIL ALLOCATED A MORE PERMANENT NUMBER IN THE LOWER RANGE.
  161.         (I suggest using a more-or-less random number to avoid the
  162.          chance of collisions with any other experimental drivers.)
  163.  
  164.         TO HAVE MAJOR/MINOR NUMBERS ALLOCATED (OFFICIALLY) FOR
  165.         YOUR DEVICE DRIVER, SEND E-MAIL TO:  RICK@EE.UWM.EDU
  166.  
  167.   VI.05)  What are the device minor/major numbers?
  168.  
  169. Majors:
  170.   0.  Unnamed .......  (unknown) ....  for proc-fs, NFS clients, etc. (???)
  171.   1.  Memory ........  (character) ..  mem ramdisk kmem null port zero core
  172.   2.  Floppy ........  (block) ......  fd[0-3]<[dhDH]{360,720,1200,1440}>
  173.   3.  AT-Disk .......  (block) ......  hd[a-b]<[0-8]>
  174.   4.  Tty ...........  (character) ..  tty's and pty's
  175.   5.  Dial-out ......  (character) ..  tty cua*
  176.   6.  Parallel ......  (character) ..  par[0-2] lp[0-2]
  177.   8.  SCSI-Disk .....  (block) ......  sd[a-h]<[0-8]>
  178.   9.  SCSI-Tape .....  (character) ..  <n>st[0-1] or <n>rmt[0-1]
  179.  10.  Mouse .........  (character) ..  logibm psaux inportbm atibm (mouse)
  180.  11.  CD-ROM ........  (block) ......  scd[0-1]
  181.  12.  QIC-tape? .....  (character) ..  rmt{8,16} tape<{-d,-reset}>
  182.  13.  XT-disk .......  (block) ......  xd[a-b]<[0-8]>
  183.  14.  Audio .........  (character) ..  audio dsp midi mixer sequencer
  184.  15.  Joystick ......  (character) ..  js[0-1]
  185.  16.  Socket ........  (character) ..  net arp
  186.  17.  AF_UNIX .......  (character) ..  unix
  187.  18.  AF_INET .......  (character) ..  inet ip icmp tcp udp
  188.  19.  WE-driver .....  (character) ..  we[0-3]
  189.  20.  DP8390-driver .  (character) ..  wd[0-3] ec[0-3] ne[0-3]
  190.  21.  Sony-CD-ROM ...  (block) ......  sonycd
  191.  22.  2nd AT-Cntrlr .  (block) ......  hd1[a-b]<[0-8]>
  192.  23.  Mitsumi CD-ROM   (block) ......  mcd
  193.  31.  Link Interface   (character?) .  ???
  194.  
  195. Breakdown of minors by Majors:
  196. ------------------------------
  197.   0.  Unnamed .......  (unknown) ....  for proc-fs, NFS clients, etc.
  198.         Minors?
  199.  
  200.   1.  Memory ........  (character) ..  ram mem kmem null port zero core
  201.         (0.  /dev/ram:  was supposed to be the ramdisk, but never got used.
  202.          As of this date it has not been implemented and probably won't be.)
  203.         1.  /dev/mem
  204.         1.  /dev/ramdisk: a BLOCK device (the RAM-disk)
  205.         2.  /dev/kmem
  206.         3.  /dev/null
  207.         4.  /dev/port
  208.         5.  /dev/zero
  209.         6.  /dev/core:  like /dev/mem, but in "core"-file format for gdb
  210.  
  211.   2.  Floppy ........  (block) ......  fd[0-3]<[dhDH]{360,720,1200,1440}>
  212.         Minors are [[4 * type] + drive] where drive 0-3 == A:-D: (floppy)
  213.         and type is:    0: Autodetect           4: 720k on 3.5" DD
  214.                         1: 360k on 5.25" DD     5: 360k on 5.25" HD
  215.                         2: 1.2M on 5.25" HD     6. 720k on 5.25" HD
  216.                         3: 360k on 3.5" DD      7. 1.44M on 3.5" HD
  217.  
  218.         0. /dev/fd0:  Autodetected first floppy.
  219.         1. /dev/fd1:  Autodetected second floppy.
  220.         2. /dev/fd2:  Autodetected third floppy.
  221.         3. /dev/fd3:  Autodetected fourth floppy.
  222.         4. /dev/fd0d360:  360k on 5.25" DD in first drive
  223.         5. /dev/fd1d360:  360k on 5.25" DD in second drive
  224.                 (You can work out the rest of the intermediates...)
  225.         8. /dev/fd0h1200:  1.2M on 5.25" HD in first drive
  226.         12. /dev/fd0D360 (/dev/fd0H360):  360k on 3.5" DD in first drive
  227.         16. /dev/fd0D720 (/dev/fd0H720):  720k on 3.5" DD in first drive
  228.         20. /dev/fd0h360:  360k on 5.25" HD in first drive
  229.         24. /dev/fd0h720:  720k on 5.25" HD in first drive
  230.         28. /dev/fd0H1440:  1.44M on 3.5" HD in first drive
  231.  
  232.      Naming goes like this:
  233.         fd[drive][media][size]
  234.          where: [drive]=0-3:  Corresponds to DOS's "A:"-"D:".
  235.                 [media]={d,h,D,H}:  d=Double Density 5.25" diskette
  236.                                     h=High Density 5.25" diskette
  237.                                     D=Double Density 3.5" diskette
  238.                                     H=High Density 3.5" diskette
  239.                 [size]={360,720,1200,1440} kilobytes.
  240.  
  241.      Floppies are assumed to be double-sided (DS), and
  242.         drives are assumed to be high-density devices.
  243.  
  244.   3.  AT-Disk .......  (block) ......  hd[a-d]<[0-8]>
  245.      (For IDE, MFM, and RLE drives and controllers.)
  246.       On the first AT controller card:
  247.         0.  /dev/hda (/dev/hda0):  The whole first HD, including its MBR.
  248.         1-4.  /dev/hda{1-4}:  Primary partitions on the first hard drive.
  249.         5-8.  /dev/hda{5-8}:  Extended partitions on the first hard drive.
  250.         64.  /dev/hdb (/dev/hdb0):  The whole second HD, including its MBR.
  251.         65-68.  /dev/hdb{1-4}:  Primary partitions on the second hard drive.
  252.         69-72.  /dev/hdb{5-8}:  Extended partitions on the second hard drive.
  253.       On the second AT controller card:
  254.         128.  /dev/hdc (/dev/hdc0):  The whole third HD, including its MBR.
  255.         129-132.  /dev/hdc{1-4}:  Primary partitions on the third hard drive.
  256.         133-136.  /dev/hdc{5-8}:  Extended partitions on the third hard drive.
  257.         192.  /dev/hdd (/dev/hdd0):  The whole fourth HD, including its MBR.
  258.         193-196.  /dev/hdd{1-4}:  Primary partitions on the fourth hard drive.
  259.         197-200.  /dev/hdd{5-8}:  Extended partitions on the fourth hard drive.
  260.  
  261.         Notes:  BE *VERY* CAREFUL WITH the four "whole drive" devices (hda,
  262.                 hdb, hdc, and hdd)!!  These four devices embody the *entire*
  263.                 *drive*, not just one partition.  The only things that use
  264.                 them are things that need to read/change the partition table
  265.                 (like fdisk).
  266.  
  267.                 Linux doesn't order anything.  It perceives partitions in the
  268.                 order in which they appear in the partition table.  Thus,
  269.                 /dev/hd?1 may follow /dev/hd?2 in the cylinder numbering.
  270.  
  271.                 The names of the hard drives are not the same as under Minix.
  272.  
  273.   4.  Tty ...........  (character) ..  tty's and pty's
  274.         0.  /dev/tty0:  This is the currently active Virtual Console.
  275.         1-9.  /dev/tty[1-9]:  Specific virtual consoles.
  276.         10-63.  /dev/ttyV[10-63]:  More virtual consoles that nobody uses.
  277.         64-127.  /dev/tty[0-?][0-63]:  Dial-in serial ([controller][port]).
  278.         128-191.  /dev/pty[p-s][0-f]:  PTY Masters.
  279.         192-255.  /dev/tty[p-s][0-f]:  PTY Slaves. ([0-f]=0123456789abcdef)
  280.  
  281.         Notes:  NOTICE THE NEW NAMING FOR SERIAL LINES.  Serial lines will
  282.                 be named either "tty..." or "cua..." (See Major #5) followed
  283.                 by the one-digit number of the *board* the line is from, and
  284.                 the number of the line on that board.  The four default lines
  285.                 are considered to be on board "0", so what DOS calls "COM2:"
  286.                 should now be known as "/dev/tty01" or "/dev/cua01".
  287.  
  288.                 For more information on the use of multi-port boards, read
  289.                 the documentation which accompanies the serial patches.
  290.  
  291.   5.  Dial-out ......  (character) ..  tty cua*
  292.         0.  /dev/tty:  the tty that owns the process calling it.
  293.         64-127.  /dev/cua[0-?][0-63]:  Dial-out serial ([controller][port]).
  294.                 (See Major #4 for NEW NAMING CONVENTION.)
  295.  
  296.   6.  Parallel ......  (character) ..  par[0-2] lp[0-2]
  297.      Parallel (printer) ports.  (Increasable in include/linux/lp.h)
  298.         0.  /dev/par0 (/dev/lp0):  First XT parallel port
  299.         1.  /dev/par1 (/dev/lp1):  First AT parallel port
  300.         2.  /dev/par2 (/dev/lp2):  Second AT parallel port
  301.  
  302.         Notes:  The number of line printers is defined by LP_NO which is
  303.                 found in [/usr/src]/linux/include/lp.h.
  304.  
  305.   7.  Unused.  (First come, first serve.)
  306.         This one's getting old.  No minor numbers are yet assigned.
  307.         It's not even in the source code.  Maybe it never will be...
  308.  
  309.   8.  SCSI-Disk .....  (block) ......  sd[a-h]<[0-8]>
  310.         Minors numbers are ((16 * Drive) + Partition)
  311.         where
  312.           Drive is the number of the physical drive in order of detection
  313.         and
  314.           Partition is as follows:
  315.                 0   is the whole drive
  316.                 1-4 are the DOS "primary" partitions
  317.                 5-15 are the DOS "extended" (or "logical") partitions, so...
  318.  
  319.         0.  /dev/sda (/dev/sda0):  The first (detected) SCSI drive.
  320.         1-4.  /dev/sda[1-4]:  Primary partitions on the first SCSI drive.
  321.         5-15.  /dev/sda[5-15]:  Extended partitions on the first SCSI drive.
  322.         16.  /dev/sdb (/dev/sdb0):  The second (detected) SCSI drive.
  323.         17-20.  /dev/sdb[1-4]:  Primary partitions on the second drive.
  324.         21-31.  /dev/sdb[5-15]:  Extended partitions on the second drive.
  325.         32.  /dev/sdc (/dev/sdc0):  The third (detected) SCSI drive.
  326.         ...and so on.
  327.  
  328.   9.  SCSI-Tape .....  (character) ..  <n>st[0-1] or <n>rmt[0-1]
  329.         0.  /dev/st0:  First (detected) SCSI tape drive, rewind-on-close.
  330.         1.  /dev/st1:  Second (detected) SCSI tape drive, rewind-on-close.
  331.         128.  /dev/nst0:  First (detected) SCSI tape, *no* rewind-on-close.
  332.         129.  /dev/nst1:  Second (detected) SCSI tape, *no* rewind-on-close.
  333.  
  334.  10.  Mouse .........  (character) ..  logibm psaux inportbm atibm (mouse)
  335.      (MGR may require that /dev/mouse be linked to one of these...)
  336.                 NOTE THE CHANGES TO DIFFERENTIATE MOUSE TYPES!
  337.                 (Please implement these in the distributions.)
  338.         0.  /dev/logibm:  Logitec-'compatible' bus mouse
  339.         1.  /dev/psaux:  PS/2 mouse port (may not work on some lap-tops, yet)
  340.         2.  /dev/inportbm:  MicroSoft "InPort" bus mouse
  341.         3.  /dev/atibm:  ATI XL bus mouse
  342.  
  343.  11.  CD-ROM ........  (block) ......  scd[0-1]
  344.         0.  /dev/scd0:  The first (detected) SCSI CD-ROM.
  345.         1.  /dev/scd1:  The second (detected) SCSI CD-ROM.
  346.         ("There's not much more to it than that" says Eric Youngdale.)
  347.  
  348.  12.  QIC-tape? .....  (character) ..  rmt{8,16} tape<{-d,-reset}>
  349.      (I really don't have much info on this one... )
  350.         6.  /dev/rmt8:  QIC-120
  351.         8.  /dev/rmt16 (/dev/tape):  QIC-150
  352.         136.  /dev/tape-d:  (It has something to do with being 128+8... ?)
  353.         255.  /dev/tape-reset:  For resetting only.
  354.  
  355.  13.  XT-disk .......  (block) ......  xd[a-b]<[0-8]>
  356.      XT (8-bit) hard disk controller devices.
  357.         Minor numbers are assigned in the same manner as for the
  358.         normal (AT-type) Hard Drive devices ("/dev/hd*").
  359.  
  360.  14.  Audio .........  (character) ..  audio dsp midi mixer sequencer
  361.         0.  /dev/mixer:  Mixer and Control Device
  362.         1.  /dev/sequencer:  FM-synthesizer and Midi
  363.         2.  /dev/midi:  (for future use)
  364.         3.  /dev/dsp:  Digitized voice (DAC/ADC)
  365.         4.  /dev/audio:  (Reserved for compatibility with Sun)
  366.  
  367.  15.  Joystick ......  (character) ..  js[0-1]
  368.         0.  /dev/js0:  (Left/Right?) joystick.
  369.         1.  /dev/js1:  (Right/Left?) joystick.
  370.  
  371.  16.  Socket ........  (character) ..  net arp
  372.         0.  /dev/net:  Generic layer (sockets)
  373.         1.  /dev/arp:  Address Resolution Protocol (ARP)
  374.  
  375.  17.  AF_UNIX .......  (character) ..  unix
  376.         0.  /dev/unix:  AF_UNIX protocol layer
  377.  
  378.  18.  AF_INET .......  (character) ..  inet ip icmp tcp udp
  379.         0.  /dev/inet:  AF_INET protocol layer
  380.         1.  /dev/ip:  Inernet Protocol (IP)
  381.         2.  /dev/icmp:  Internet Control Message Protocol (ICMP)
  382.         3.  /dev/tcp:  Transmission Control Protocol (TCP)
  383.         4.  /dev/udp:  User Datagram Protocol (UDP)
  384.  
  385.  19.  WE-driver .....  (character) ..  we[0-3]
  386.         0-3.  /dev/we[0-3]:  "WE" driver
  387.  
  388.  20.  DP8390-driver .  (character) ..  wd[0-3] ec[0-3] ne[0-3]
  389.         0-3.  /dev/wd[0-3]:  "DP8390" driver, WD8003
  390.         8-11.  /dev/ec[0-3]:  "DP8390" driver, 3C503
  391.         16-19.  /dev/ne[0-3]:  "DP8390" driver, NE2000
  392.  
  393.  21.  Sony-CD-ROM ...  (block) ......  sonycd
  394.         0.  /dev/sonycd:  Sony CDU-535 CD-ROM, I think.
  395.  
  396.  22.  2nd AT-Cntrlr .  (block) ......  hd1[a-b]<[0-8]>
  397.      Minor numbers are like those of the primary AT-Disk controller.
  398.         THIS MAY WORK FOR HARD-CARDS.
  399.      (Note the "1" in the device name for the secondary controller.
  400.       This is because we may eventually wish to change the names of
  401.       the primary-controller drives to "hd0[a-b]...".)
  402.  
  403.  23.  Mitsumi CD-ROM   (block) ......  mcd
  404.      I don't know much about this one.
  405.  
  406.  31.  Link Interface   (character?) .  ???
  407.         0.  ???
  408.      Link Interface for use with Christoph Niemann's driver for the
  409.      INMOS C012-based high-speed serial link interface card (useful
  410.      for talking to transputers or video digitizers).
  411.  
  412.  
  413.   VI.06)  (Chuck Boyer) Could some one clear up the devices meaning?
  414.  
  415. ANSWER: (Jim Winstead Jr)
  416. >port
  417.  
  418. This allows programs to access the hardware ports directly.  Not
  419. something you generally mess around with much.
  420.  
  421. >ptyp0-3
  422. >ptypa...tty
  423.  
  424. These are the pseudo-tty 'master' devices.  Each pty connection uses
  425. a slave-master set of tty devices.
  426.  
  427. >tty0...
  428.  
  429. tty[1-8] are the virtual consoles associated with Alt-F[1-8].  tty0 is
  430. the current virtual console (so writing something to tty0 goes to the
  431. current vc).
  432.  
  433. >tty64 I've figured out is the modem connection
  434.  
  435. Yes, that would correspond to COM1 under DOS.  However, the tty64 name
  436. is obsolete - ttys[1-4] should be used instead.
  437.  
  438. >ttyp0...
  439. >ttypa...
  440.  
  441. These are the pseudo-tty 'slave' devices.
  442.  
  443. >ttys1...
  444.  
  445. These are the serial devices.  ttys1 corresponds to COM1 under DOS,
  446. ttys2 corresponds to COM2, etc.
  447.  
  448.  
  449.  
  450. VI.C Special Serial
  451. ~~~~~~~~~~~~~~~~~~~
  452. *** This section is maintained by Jim Gifford
  453. *** (jgifford@attmail,world.std}.com), some addenda were sent by
  454. *** Juha Ursin (jus@snakemail.hut.fi)
  455. *** Last update May 1993.
  456.  
  457. Douglas E. Quale:
  458. This has come up a couple of times already (including the case of
  459. serial mice as well), but for the record stty acts on stdin not
  460. stdout.  Old stty's (from V7 through BSD4.3) used stdout, but this is
  461. suboptimal and doesn't conform to POSIX.  The GNU stty you are likely
  462. using on Linux uses stdin, as does the stty distributed with BSD
  463. Networking Release 2.  (Also, ``stty -a'' is more informative about
  464. possible parameters, although it's pretty hard for me to remember what
  465. 90% of that stuff does without refering to the man page.)
  466. Jim Gifford:
  467. However, there are a few older (of mysterious origin) stty's that work
  468. on stdout(I have one myself!)
  469.  
  470.   VI.07)  Is there a list somewhere where I can get help with serial
  471.    communications under Linux?
  472.  
  473. ANSWER: (Jim Gifford -- jgifford@world.std.com)
  474.    There is a list for the discussion of serial communications under
  475.    Linux.  It is for problems, drivers, new developments, etc... with
  476.    the Linux serial devices. The list is: linux-serial@stolaf.edu
  477.    To join, send mail to linux-serial-request@stolaf.edu
  478.    I hope that this list will prove beneficial to the improvement of
  479.    Linux. This list is maintained by Michael K. Johnson as
  480.    linux-serial-request@stolaf.edu
  481.  
  482.   VI.08)  When I run kermit under Linux, I get "Warning, Read access
  483.    to lock directory denied". What am I doing wrong?
  484.  
  485. ANSWER: Nothing, you just need to create /usr/spool/uucp (kermit 4.6?)
  486.    or /usr/spool/locks (this is for the kermit5A), which is where kermit
  487.    like to lock files.
  488.  
  489.   VI.09)  What are the major, minor numbers for the serial ports under linux?
  490.  
  491. ANSWER:   Major 4, Minor :
  492.    64      /dev/ttys0      - com1
  493.    65      /dev/ttys1      - com2
  494.    66      /dev/ttys2      - com3
  495.    67      /dev/ttys3      - com4
  496.  
  497.   VI.10)  can anyone give me a sample /etc/inittab entry for login
  498.    from a pc attached to serial line /dev/ttys2?
  499.  
  500. ANSWER: "Humberto speaking :), updated by Rick Miller"
  501.    First set up the modem to turn off echo and enable auto answer, I do
  502.    this in kermit by connecting to the modem and typing "ate0s0=1"
  503.    followed by enter (w/o quotes). Then setup inittab to spawn getty on
  504.    the modem
  505.    ttys2:vt100:/etc/getty -m 1200 ttys2
  506.      (Replace "vt100" with the name of the /etc/termcap entry for the
  507.       terminal type you will use, or use "dumb" if you don't have one.)
  508.  
  509.    Then it should work. Some modems can be permanently set to disable
  510.    echo and set auto answer, see your manual.
  511.  
  512.    Jim Weigand says:
  513.      disable all messages. This will prevent getty from hanging up
  514.    your modem.
  515.    Set       For:
  516.    ATE0      No echo
  517.    ATQ1      No messages
  518.    ATS0=2    Answer 2nd ring
  519.    ATS7=60   1 minute to answer (shorter if 2400 baud)
  520.    You can use kermit to set these. Do an AT&W to save for power-up.
  521.  
  522.    Michael K. Johnson says:
  523.    If you would rather not save these commands as defaults to come up
  524.    on power-up, perhaps because you want to use your current modem
  525.    settings under a DOS communications package, you can also shove
  526.    these command out ttys? from /etc/rc (or /etc/rc.local) using
  527.    the command:
  528.       echo "<modem_settings>" > /dev/ttys?
  529.  
  530.   VI.11)  How do I set parameters like parity for serial login?
  531.  
  532. ANSWER: Use stty and redirect input from the serial line.
  533. ex: stty parodd < /dev/ttys2 which gives ttys2 odd parity.  
  534. type stty -a to get an idea of possible parameters. 
  535. Or 'man stty' as well :)
  536.  
  537.   VI.12)  (Juha Ursin) I run SLS pl6, kernel is pl8 and I use
  538. libc.4.3.2.
  539. Trying to allow login on my terminal (on ttyS1 with only three wires
  540. (RX, TX, GND) connected). Getty 9600 /dev/ttyS1 starts and I get the
  541. login prompt, but the password prompt newer appears.
  542.  
  543.  
  544. ANSWER: (Ted Ts'o)
  545. Setting CLOCAL is the correct way to solve this --- it is not a bug in
  546. the kernel.  Since you only have three wires connected, it means that
  547. the carrier detect line was left floating, and probably floated to
  548. ground.  Thus, the /dev/ttyS1 device blocked waiting for carrier detect
  549. to go high.  The reason why the login prompt appeared is that getty
  550. opened /dev/ttyS1 with the NODELAY flag; but when /dev/ttyS1 was
  551. reopened for /bin/login, it did not have the NODELAY flag, and you ended
  552. up blocking.
  553.  
  554. That's what the CLOCAL flag is for --- it indicates that the serial port
  555. is hooked up to a local (hence CLOCAL) terminal, and so the carrier
  556. detect line should be ignored.  In general, whenever the carrier detect
  557. line is not supported by a serial device, or if your RS-232 cable does
  558. not support the CD wire, the CLOCAL flag should be set.
  559.  
  560.  
  561.   VI.13)  (Juha) Where are my Call-out-mode -serial ports (cuaX) ?,
  562. When should I use these cuaX ports ?, Why on my system ttys3 is used
  563. instead of ttyS3 ?
  564.  
  565. ANSWER: (Ted) Ask the person who created the install procedure (Peter
  566. MacDonald, in the case of SLS).
  567.  
  568. >When should I use these cuaX ports? 
  569.  
  570. When you're dialing out (i.e., kermit, cu, seyon, uucp, etc.).
  571.  
  572. >On my configuration ttyS3 is named ttys3 incorrectly - why? 
  573.  
  574. Again, see the person who created the install procedure.  Recent
  575. versions of SLS create the serial devices using the new convention
  576. (ttyS3).  ttys3 represents an older convention, and some older install
  577. procedures may not have switched over.
  578.  
  579.   VI.14)  (Juhan) What other possibly free IRQ's there are than IRQ5 ?,
  580. Can I use IRQ7 when not printing ?,
  581.  
  582. ANSWER: (Ted)
  583. IRQ 2 is also often free, although some networking cares use them.
  584.  
  585. > Can I use IRQ 7 when not printing? 
  586.  
  587. It's generally a bad idea to have two cards plugged in sharing an IRQ
  588. address.  It happens to work with most serial cards, but it doesn't
  589. alwas work.  You can use IRQ 7 if you don't have a parallel port plugged
  590. into your system.  If you do have a parallel port plugged in, you can
  591. try using IRQ 7; it might work, it might not.  Be sure to also make sure
  592. that the printer works after you plug in your serial card configured to
  593. use IRQ 7.  Another alternative: If you are using the version of the
  594. parallel printer driver that doesn't use interrupts, you can go to your
  595. parallel port board, and disable the IRQ, thus freeing IRQ 7.
  596.  
  597.      Is pin 1 nearest to the plate or is it 31?
  598.  
  599. If this is a sample PC ISA card, then A1 is the pin closest the "back" of
  600. the card, and on the top, if the pins are held down and the "back" of
  601. the card is to your right:
  602.  
  603.  ----------------------------------------------------------------------
  604.  |                                                                    |
  605.  |                                                                    |
  606.  |                                                                    |
  607.  |                                                                    |
  608.  |                                                                    |
  609.  |                                                                    |
  610.  +---------------------------------+          +---+               +---+
  611.                                    |          |   |               |
  612.                                    +----------+   +---------------+
  613.                                                    A             A
  614.                                                    3             1
  615.                                                    1
  616.  
  617. The "B1..B31" pins are on the reverse side of the card.
  618.  
  619.  
  620.  
  621.  
  622. VII. MORE HINTS 
  623. =============== 
  624.  
  625. This part try to keep track of the different information
  626. that appeared in comp.os.linux and on the list since beginning of
  627. March. I tried to update it for KERNEL_VERSION, so there might be some
  628. mistakes. Moreover take care to use the correct library and include
  629. stuff, and the ad-hoc gcc you use !!!
  630.  
  631.  
  632.  VII.01)  How can I backup my Hd under Linux ?
  633.  
  634. ANSWER: I know at least two ways. One possibility is tar and mtools,
  635. another possibility is the diskbackup/diskrestore of Diamano Bolla
  636. (digest37 vol. #2) which saves big hd to floppies using the
  637. stdin/stdout. These utilities have been uploaded to the major sites in
  638. file disksplit.tar.Z.
  639. An example usage (Roger Binns) is:
  640.  
  641. tar cvf - bin dev usr etc .. | compress | diskbackup
  642.  
  643. and to restore:
  644.  
  645. diskrestore | uncompress | tar xvf -
  646.  
  647. BTW: if you are on Ethernet you could send your files via tar..|rsh (tar...)
  648. or even via NFS to a host which is regularly backed up !
  649.  
  650.  
  651.  VII.02)  Where is 'which' ?
  652.  
  653. ANSWER: It depends on the sh you are running:
  654. in bash     'type -path'
  655. in tcsh        it's a builtin
  656.  
  657. for rc you can try the following (untested by me) script from
  658. Kevin Brown: 
  659.  
  660. #!/bin/sh
  661. for i in `echo $PATH | sed 's/:/ /g'` ; do
  662.   for j in ""$@" ; do
  663.     if test -x "$i/$j" ; then
  664.        echo "$i/$j"
  665.          fi
  666.   done
  667. done
  668.  
  669.  VII.03)  How to use setterm: for the novice?
  670.  
  671. ANSWER:The setterm utility provides access to most of Virtual Consoles
  672. (VCs) functionality.  You can set your screen up to blank at 10
  673. minutes using:
  674.             setterm -blank 10
  675.  
  676. You can set colors, and clear the screen.  For a full list of commands,
  677. just type "setterm" with no arguments.
  678.         
  679. There are a few tricks with the screen dumper can really make VCs go a 
  680. long way.  Here are a few of the common ones that I use:
  681.  
  682.         setterm dump
  683.  
  684. Dumps the contents of the current VC to screen.dump (in the current dir).
  685.                     
  686.         setterm dump 4
  687.                 
  688. Dumps the contents of VC 4 to screen.dump
  689.         
  690.         setterm -file mydumpfile -dump 4
  691.  
  692. Dump the contents of VC 4 to the file mydumpfile
  693.  
  694.         setterm -file /dev/tty0 -dump 4
  695.  
  696. Dumps the contents of VC 4 to the current VC.
  697.                     
  698.         setterm -file /dev/tty4 -dump
  699.  
  700. Dumps the contents of the current VC to VC 4.
  701.         
  702.         setterm -file /dev/ttys1 -dump
  703.                 
  704. Dumps the contents of the current VC to the serial port.
  705. Handy if you are logged on and want to paste a screen full without
  706. having to resort to doing a file transfer.
  707.  
  708.         setterm -file mydumpfile -append 4
  709.                 
  710. Appends to instead of overwriting the dump file.  Useful if you
  711. have several screens you wish to concatenate.
  712.  
  713.  
  714.  VII.04)  I've tried clear/reset which exist on most of unix but it
  715. doesn't work, have I missed something? 
  716.  
  717. ANSWER: setterm -clear or setterm -reset will solve your missing.  For
  718. clear, you can also write a small script (which use the cl: part of
  719. /etc/termcap wrt your TERM), or use bash where ctrl-l will do it for
  720. you.
  721.  
  722.  
  723.  VII.05)  I know there are VC, but where is the setterm stuff?
  724.  
  725. ANSWER: It's in the current distribution (i.e. on the images), the
  726. source can be found in virtcons.tar.Z at nic.
  727.  
  728.  
  729.  VII.06)  I know there are shared libraries; does there exist an easy
  730. way to check an executable for sharing ? 
  731.  
  732. ANSWER: (Claude Morin:) There exists at tsx-11 ldd.tar.Z If you follow
  733. the instructions, you will be able to type "ldd <executable>" to List
  734. the Dynamic Dependencies of the executables. In other words 'ldd'
  735. prints the name of the shared libraries needed by the executable,
  736. nothing appears for static one. 
  737.  
  738. ANSWER: (Josh Yelon & HJ Lu) - very old binaries.
  739. (J.Y.) An executable which shares a library is linked with an
  740. (ordinary, non-shared) "stub" version of the library. One of the first
  741. thing this stub does (when the executable is run) is to ask the kernel
  742. to load the (big) "shared version" of the library (which is usually
  743. named /lib/lib.XX.XX) The upshot of this is that in the code for the
  744. stub (part of the executable), is the string "/lib/lib.XX.XX"; which
  745. can be searched by using 'strings' or 'grep'.
  746. (HJ. L.) if you have gcc2.11a or later the shared image is changed to
  747. /lib/libxxxx_vyy_zzz. And you should better use nm to find
  748. "__shared_lib" (nm failed on stripped executable). You can also write 
  749. a function for "file", which can even check the version number ....
  750.  
  751.  VII.07)  What is the rdev program provided in the images?
  752.  
  753. ANSWER: It's a program from Werner Almesberger of ETH. With no
  754. argument it prints the first line of /etc/mtab. With one argument, a
  755. boot-image, it prints the device configured as the root device, and
  756. with two arguments, a boot image and a device, it sets the device as
  757. default root in the specified image.
  758.  
  759.  
  760.  VII.08)  How to start Linux from drive B?
  761.  
  762. ANSWER: There is a DOS utility called boot_b.exe (look at DOS ftp).
  763. Another simple way is to open the box and invert the cables.
  764.  
  765.  
  766.  VII.09)  The program boot_b works fine /but/ once the first disk is
  767. read the system go back to the first drive, any hints?
  768.  
  769. ANSWER: Yes, change the bootimage in just the same way that you change
  770. it to boot on the hard drive, execept that the major/minor pair is
  771. different. All these information are in the file INSTALL-0.10.
  772. Remember that if you use a sun or other endian machine, you will need
  773. to reverse the byte order when you run the filter program (also in the
  774. same file).
  775.  
  776.  
  777.  VII.10)  How can I get Linux to boot directly from the harddisk?
  778.  
  779. ANSWER: (Rick) The best option right now is LILO version ALPHA.8. It
  780. has been generally agreed that the days of using "shoelace" are at an
  781. end. See Section III of this FAQ for LILO information.
  782.  
  783.  VII.11)  I use shoelace, but I want to change my root partition, what
  784. is the process to get rid of it? 
  785.  
  786. ANSWER: With Norton utility you can put back a standard boot sector.
  787. Another possibility is to restore the old boot sector (the one you
  788. should have backup *before* installing shoelace).
  789.  
  790.  
  791.  VII.12)  Sometimes, when I want to remove a directory, I get an error
  792. message, is it a (known) bug?
  793.  
  794. ANSWER: No, There is no bug at all, you probaly have another shell 
  795. on another VC whose working directory is either the one you try to 
  796. remove, either a subdirectory of it.
  797.  
  798.  
  799.  VII.13)  I'm looking for init, getty, login, passwd stuff, where 
  800. can I find them? 
  801.  
  802. ANSWER: You should find it in shadow.tar.Z (only sources), at least 
  803. at tsx in the usr.bin directory. Many people have reported some troubles 
  804. with the *OLD* shadow-passwd (shadow-bin.tar.Z and shadow-src.tar.Z, so 
  805. do not use them anymore); an alternative might be the mcc-interim
  806. which contains standard passwd binary. There is also the Peter Orbaek's
  807. admutil-1.?.tar.Z and poeigl-1.?.tar.Z which contains source for
  808. shutdown, su, chsh, passwd and a system V init compatible. 
  809.  
  810.  
  811.  VII.14)  How can I setup a user account other than root ?
  812.  
  813. ANSWER: You can either use the adduser program, either do it manually.
  814. In the later case, you have to:
  815. a) edit /etc/passwd as root and add a line of the following format:
  816. user:passwd:uid:gid:user name:home directory:login shell
  817.  
  818. user is the login name; uid is the numeric user id, it should be
  819. unique; gid is the numeric group id, this number should correspond to
  820. an entry in /etc/group. The passwd field should be left blank 'cause
  821. it is stored in an encrypted form [to set this field just use the
  822. passwd program].
  823. example
  824. faq::200:5:Marc-Michel:/home/faq:/bin/sh
  825. b) Still as root, you shoud now create the home directory and set the
  826. correct ownership.
  827. mkdir /home/faq
  828. chown faq /home/faq
  829. chgrp 5 /home/faq
  830.  
  831.  
  832.  VII.15)  I've been trying to get Linux to run on my [3/4]86 box. It
  833. can't even boot. Any suggestions?
  834.  
  835. ANSWER: The most common error/problem is writing the bootimage to a
  836. low density disk. It fits, but the bootstrap code will only recognize
  837. high density disk. So try to format explicitely disk as high density:
  838. - for 3.5",  'format a: /n:18 /t:80 '
  839. - for 5.25", 'format a: /n:15 /t:80 '
  840.  
  841.  
  842.  VII.16)  Does there exist games, languages (other than C), and
  843. anything which make the system more friendly?
  844.  
  845. ANSWER: Yes, among other things there are rogue and yahtzee; TeX;
  846. Prolog, Perl.. but in general, if you want some extra tool port it to
  847. Linux this is also a good beta-testing exercice. 
  848.  
  849.  
  850.  VII.17)  Whenever I use uemacs 3.1X on a symlink, the symlink does
  851. not exist anymore, why?
  852.  
  853. ANSWER: (Tristram Mabbs) Since ue3.10, uemacs uses 'safe save' mode,
  854. writing the file to a temporary and moving it OVER the original. In
  855. the process, this deletes the original. To prevent this just add the
  856. following in your emacs '.rc' file: set $ssave FALSE
  857.  
  858.  
  859.  VII.18)  I have an SVGA, but Linux detect an EGAc/EGAm; is it normal?
  860.  
  861. ANSWER: (Jim Winstead) This is correct actually. You have an EGA+ card
  862. (SVGA) with a Color/Mono monitor. The only four possibilties are EGAc,
  863. EGAm, *MDA and *CGA (according to the code in
  864. kernel/chr_drv/console.c).
  865. The true test, if Linux detects your video card, is if you press
  866. <RETURN> at the "Press <RETURN> to see SVGA- ..." boot-time message.
  867. If you have a SVGA  recognized card, it will ask you to choose a
  868. screen size. If not detected, the default is 80x50 mode. 
  869. BTW if you have no SVGA, press the <space> and you are in 80x25 mode.
  870.  
  871. If you have dowloaded the kernel, you can automatically skip this
  872. query at boot-time if you set the SVGA_MODE variable in the main
  873. Makefile before compiling a new bootimage. 
  874.  
  875.  
  876.  VII.19)  How can I change the keyboard repeat rate?
  877.  
  878. ANSWER: (Michael K Johnson) In boot/setup.S there are the lines:
  879. ! set the keyboard repeat rate to max
  880.     mov    ax,#0x0305
  881.     mov    bx,0x0000
  882.     int    0x16
  883.  
  884. If you don't want to change the repeat rate at all, just comment out
  885. these lines. If you want something in the middle, change the
  886.     mov    bx,0x000
  887. by    mov    bx,0x??yy
  888. where ??yy is determined by (Ralf Brown's interrupt list)
  889. bh= delay value (0x00 = 250ms to 0x03= 1000ms (one sec))
  890.     this is the delay before the repeat is performed
  891. bl= repeat rate (0x00 =30/sec to 0x1f=2/sec; 0x0c=10/sec [default])
  892.  
  893.  
  894.  VII.20)  I compiled fdformat.c and ran it on 1.44Mb and 1.2Mb, the
  895. results are unreadable, any clue? 
  896.  
  897. ANSWER: (M. Pereckas) fdformat only low-level formats the disk. to use
  898. the fdformatted disk with DOS filesystem, run mformat on the disk.
  899. Mformat writes DOS filesystem information but is unable to low-format
  900. :). In order to put a Linux filesystem on a (low)formatted disk you
  901. have to mkfs it. 
  902.  
  903.  VII.21)  Is it possible to disable the 3-fingers salute
  904. (ctrl-alt-del) ?
  905.  
  906. ANSWER: Yes, in kernel/sys.c you can read the following:
  907.  
  908. /*
  909.  * this indicates wether you can reboot with ctrl-alt-del: the deault is yes
  910.  */
  911. static int C_A_D = 1;
  912.  
  913. there is also a small utility written by Linus in digest242 vol#2
  914.  
  915.  
  916.  VII.22)  Could some one explain the information provided at boot-time?
  917.  
  918. ANSWER: (Jim Winstead Jr)
  919. > serial port at 0x03f8 is a 16450 
  920. > serial port at 0x02f8 is a 16450 (what's that the uart chip?)
  921.  
  922. Right, the last number should either be 8250, 16450, 16550, or 16550a,
  923. and on the two 16550 models, it will report that FIFO's have been
  924. disable (16550) or enabled (16550a).
  925.  
  926. > 8 virtual consoles (that's how many alt-F's I can get going?                 
  927. >      but only F1-4 actually work)
  928.  
  929. You can get sessions running on Alt-F[1-8], but the 'standard'
  930. /etc/inittab only runs getty/login on Alt-F[1-4].  You can start
  931. sessions on the other consoles by using 'doshell' or adding lines to
  932. /etc/inittab.
  933.  
  934. > 4 pty's (are these the consoles F1-4?)
  935.  
  936. No, those are 'pseudo' ttys, which programs like MGR use to simulate
  937. tty connections.  That's probably a gross over-simplification, but it
  938. gives you the general idea, I think.  :)
  939.  
  940. > p_init: lp1 exists (0) (is that the (l)ine (p)rinter?)
  941.  
  942. Right.
  943.  
  944.  
  945.  VII.23)  What is the meaning of files ended by .T.Z (or .taz) ?
  946.  
  947. ANSWER: The suffix Z is for compressed files (to uncompress them use
  948. the command `uncompress file.Z`).
  949. The suffix T indicates a "tar file" the usual suffix is tar but, the
  950. 14 chars filename limit of the Minix filesystem makes it cumbersome to
  951. use .tar.Z (to untar a file ended by .T, use the command 
  952. `tar options file.T` (see the man page for more details).
  953.  
  954. For the .taz file, change them as .T.Z and go-ahead.
  955.  
  956.  VII.24)  What is the meaning of files ended by .T.z (or .tpz) ?
  957.  
  958. ANSWER: The suffix z is for files compressed with the
  959. gzip utility, which is being used more frequently because it provides
  960. better compression.  These can be uncompressed with the `gzip -d
  961. file.z` command.
  962.  
  963.     
  964.  VII.25)  I have upgraded the kernel from XX to YY (XX > YY), however the
  965. login screen still says YY.
  966.  
  967. ANSWER: Just change the message in one of these files: /etc/issue and
  968. /etc/motd. The former contains the message before the login, the later
  969. is the one after you are logged in.
  970.  
  971.  VII.26)  What is doshell good for ?
  972.  
  973. ANSWER: It's an old program provided in the early Linux version (0.12)
  974. when the getty was not already there, it spawns a shell on any tty's.
  975. (Mattew Gream): I do this quite often ( getty on tty1, 2, 3 and my
  976. rc.local spawns a shell on tty4 as follows
  977.      '/usr/bin/doshell /dev/tty4 /bin/tcsh &'
  978.  
  979.  
  980.  VII.27)  I don't have the kernel sources, how can I change the keyboard
  981. language?
  982.  
  983. ANSWER: You can use the fixkbd program written by Laurent JULLIARD
  984. (Laurent_JULLIARD@grenoble.hp.com). Its purpose is to fix the keyboard
  985. map used in your kernel image. It works more or less a la "rootdev"
  986. (or rdev). It can be found on tsx-11.mit.edu in
  987. /pub/linux/binaries/sbin/fixkbd.tar.Z.  
  988.  
  989.  
  990.  VII.28)  Does there exist a possibility to track down the source of
  991. kernel pannic messages ?
  992.  
  993. ANSWER:  Here's info from Linus on how to track down the source
  994. of kernel panic messages. The values for EIP, address, and so on are
  995. JUST EXAMPLES: the EIP, EFLAGS, etc. can be anything.
  996.  
  997. The lines after ">" were written by me; the responses by Linus.
  998.  
  999. > Unable to handle kernel paging request at address C000000A
  1000.  
  1001. This means something in the kernel tried to access kernel memory at
  1002. address 0x00A (the C0000000 offset is due to the kernel starting at
  1003. virtual address 0xC0000000).  The first page of kernel address space is
  1004. unmapped to find these kinds of incorrect references (it's probably a
  1005. NULL dereference to a structure member at offset 0xA). 
  1006.  
  1007. > Oops: 0002
  1008.  
  1009. Error code. This tells you if it's a read or write (forget which ritgh
  1010. now, and don't have any books handy)
  1011.  
  1012. > EIP: 0008:000290D2
  1013.  
  1014. This is where it happened: segment 0008 (kernel code segment) and offset
  1015. 0x290D2 into the kernel. So to find this, you generally do something
  1016. like
  1017.  
  1018.     nm /usr/src/linux/tools/system | sort | less
  1019.  
  1020. and search for the function that contains the address 0x290D2.
  1021.  
  1022. > EFLAGS: 00010087
  1023. > fs: 0017
  1024.  
  1025. Eflags and fs when the exception happened. You usually don't need this.
  1026.  
  1027. > base: C0000000, limit: 000A0000
  1028. > Pid: 0, process nr: 0
  1029.  
  1030. In what process the exception happened. This is the swapper, which also
  1031. means the thing is fatal (other processes you can just kill). That it's
  1032. in the swapper process probably means that it's an interrupt that did
  1033. it, as the swapper doesn't really do anything.
  1034.  
  1035. > 89 50 04 c7 03 00 00 00 00 c7
  1036.  
  1037. This is the instruction that resulted in the error.  I usually
  1038. disassemble them by hand and see what it is, then I try to find out
  1039. exactly where in the function this assembly sequence comes up (probably
  1040. by compiling the .c file to a .s file and looking around). 
  1041. Alternatively you can just run 'gdb' on /usr/src/linux/tools/system, but
  1042. gdb has some problems. 
  1043.  
  1044. > task[0] (swapper) killed: unable to recover
  1045. > kernel panic: Trying to free up swapper memory space
  1046. > In swapper task - not syncing
  1047.  
  1048. This is just to tell you not to expect anything from the kernel any
  1049. more: linux cannot go on without the swapper task.
  1050.  
  1051. > How can I decode the numbers in the message? 
  1052. > Also, note that sometimes the "Unable to handle..."
  1053. > message is followed by the "Oops: 0002" block, but
  1054. > the last message is sometimes something else (i.e. not
  1055. > always a "task[0] (swapper)...." message, but something
  1056. > from the TCP driver in this case. 
  1057.  
  1058. It depends on where it happened. If it's an interrupt, it can
  1059. essentially happen in any task (all interrupts are handled in the task
  1060. that happens to be currently active), while "normal" code happens in the
  1061. task that calls it.
  1062.  
  1063.  
  1064.  
  1065. VIII. EMACS for LINUX
  1066. =====================
  1067. *** This section is maintained by Rick Sladkey (jrs@world.std.com)
  1068. *** Last Update March 1993.
  1069.  
  1070.  
  1071. VIII.A. GENERAL INFORMATION 
  1072. VIII.B. GNU EMACS for LINUX
  1073.  
  1074.  
  1075. VIII.A. GENERAL INFORMATION
  1076. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1077.  
  1078. This is a short list of Frequently Asked Questions about GNU Emacs
  1079. under Linux.  It does not address general questions about Emacs which
  1080. are not Linux specific.  For general help about Emacs, 1) learn to use
  1081. and read the online documentation, 2) read the real Emacs FAQ found in
  1082. emacs/etc/FAQ, and 3) read the newsgroup gnu.emacs.help.
  1083.  
  1084.                                         Rick Sladkey <jrs@world.std.com>
  1085.  
  1086.  
  1087. VIII.B. GNU EMACS for LINUX
  1088. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1089. VIII.01)  What version of the compiler was used?  Which shared libaries?
  1090.  
  1091. ANSWER: This describes version of GNU Emacs 18.59 for Linux 0.99.5 and above
  1092. compiled with GCC 2.2.3 using the libc.so.4.3 and libX11.so.3.0 shared
  1093. libraries.
  1094.  
  1095. VIII.02)  Which files do I need?
  1096.  
  1097. ANSWER:
  1098. emacs-18.59b.tar.Z        this file, sample default.el and diffs
  1099.                 for this version, the eight-bit patch,
  1100.                 iso-latin-1.el and eight-bit.el
  1101. emacs-etc-18.59b.tar.Z        emacs support programs and misc info
  1102. emacs-bin-18.59b.tar.Z        shared emacs binary and its doc file
  1103. x11emacs-bin-18.59b.tar.Z    shared x11emacs binary and its doc file
  1104.  
  1105. VIII.03)  How do I install them?
  1106.  
  1107. ANSWER: For the latter three files, just cd to /usr and untar them.
  1108.  
  1109. VIII.04)  What if I want to compile Emacs myself?
  1110.  
  1111. ANSWER: It is fairly easy (and highly recommended) to compile Emacs
  1112. yourself if you have the the disk space.  In this case you only need
  1113. the standard Emacs distribution (emacs-18.59.tar.Z from any GNU archive)
  1114. and the Linux diffs and support files (emacs-18.59b.tar.Z from a Linux
  1115. archive).  The diffs are quite small and mostly amount to a
  1116. configuration file.
  1117.  
  1118. VIII.05)  What about Epoch or Lucid Emacs?  Are these available for Linux?
  1119.  
  1120. ANSWER: Yes.  Thomas Dunbar has been maintaining Epoch for Linux and
  1121. Chipsy Sperber has compiled Lucid Emacs.  Both of these work well
  1122. under Linux.  Look in a Linux archive index for where to find them.
  1123.  
  1124. VIII.06)  Does Linux Emacs support eight-bit input/output?
  1125.  
  1126. ANSWER: Yes.  It is new with this version.  It uses the so-called
  1127. "ctl-arrow" patch.  See the file README.8bit for more information.
  1128.  
  1129. VIII.07)  How much disk space is required?
  1130.  
  1131. ANSWER: Anywhere from 1 to 15 Meg.  Emacs works reasonably well with no
  1132. support files at all.  With a judicious selection from lisp/*.elc and
  1133. etc/*, quite a lot can be done using only 2 Meg.  If you want all of
  1134. lisp/*.elc, info/*, and etc/* this will require 4 to 6 Meg.  If you
  1135. unpack the whole source you need 8 Meg.  If you collect info files
  1136. like rare coins and install a lot of big lisp packages then Emacs may
  1137. need its own partition. :-)
  1138.  
  1139. VIII.08)  Why can't Emacs find its support files anymore?
  1140.  
  1141. ANSWER: This is because older versions of Emacs were compiled with
  1142. "/usr/local/emacs" based paths.  The current version is compiled with
  1143. "/usr/emacs" paths.  If you have a previous installation, just "mv
  1144. /usr/local/emacs /usr" and you're done.  If you can't bear to part
  1145. with the "/usr/local" pathnames because of inertia then do "ln -s
  1146. /usr/local/emacs /usr" and you can have them both.
  1147.  
  1148. VIII.09)  How do I get Emacs to recognize my cursor keys?
  1149.  
  1150. ANSWER: Simple.  Don't use them. :-)  Seriously, there are as many
  1151. ways to do this are there are elisp hackers but the preferred way is
  1152. to follow the pattern set by the other terminal definition files in
  1153. emacs/lisp/term/*.el.  For just arrow keys you can just copy vt220.el
  1154. to console.el and that's it.  For function keys and the others see
  1155. the sample default.el included with emacs-18.59b.tar.Z.
  1156.  
  1157. VIII.10)  What packages are particularly useful under Linux?
  1158.  
  1159. ANSWER: Because info format is the documentation standard of the GNU
  1160. project and just about everything except the kernel comes from FSF,
  1161. you will find that Dave Gillespie's enhanced info package is very
  1162. useful.  It allows multiple info directories, space bar paging, and
  1163. supports compressed info files. Please learn to use info.  Imagine
  1164. Unix life without man.
  1165.  
  1166. Others that I highly recommend are Sebastian Kremer's enhanced
  1167. dired directory editor, Dave Gillespie's calc calculator, Masanobu
  1168. UMEDA's gnus for usenet news, and Kyle Jone's vm for mail.
  1169.  
  1170. All can be found in the OSU Emacs archive, ftp.cis.ohio-state.edu,
  1171. /pub/gnu/emacs/elisp-archive.  See the real FAQ for more details.
  1172.  
  1173. VIII.11)  Does Linux Emacs use the shared libraries?
  1174.  
  1175. ANSWER: Yes.  It works fine with the DLL libraries and should not
  1176. require a new binary when the C or X libraries are updated.
  1177.  
  1178. VIII.12)  Does Linux Emacs support the X Window System?
  1179.  
  1180. ANSWER: Yes.  However, there are two binaries.  One without X support
  1181. (about 485k) and one with X support (about 515k).
  1182.  
  1183. VIII.13)  Do I need both Emacs if I don't always use X?
  1184.  
  1185. ANSWER: No. The X11 version works equally well inside or outside of X.
  1186. If you get the message "Check your DISPLAY variable" it means that
  1187. you have defined DISPLAY in your ~/.profile (or whatever).  You can
  1188. fix this by starting Emacs with 'emacs -nw' or by removing the DISPLAY
  1189. variable from your ~/.profile and putting it in you ~/.xinitrc.
  1190.  
  1191. VIII.14)  Why doesn't Emacs use the settings in my
  1192. .Xdefaults/.Xresources file? 
  1193.  
  1194. ANSWER: You are probably using the word "emacs" and your X version of
  1195. emacs is called x11emacs.  Either use the word "Emacs" in your resource
  1196. file or rename x11emacs to emacs.  See above question on why this
  1197. is reasonable.
  1198.  
  1199. VIII.15)  I read about some menu that is supposed to pop up when I
  1200. press some mouse button.  Does this work with Linux Emacs?
  1201.  
  1202. ANSWER: Yes.  This requires XMenu support to be compiled in.  Former
  1203. versions did not support it because it did not work correctly.
  1204.  
  1205. VIII.16)  Sometimes Emacs crashes with a SIGALRM message.  What's
  1206. wrong? 
  1207.  
  1208. ANSWER: The old answer about upgrading to a newer version of bash
  1209. was incorrect.  The problem was in the implementation of sleep(3)
  1210. in the old C library.  It is fixed as of libc-4.3.
  1211.  
  1212.  
  1213.  
  1214.        ===================8<==========>8================
  1215.  
  1216. -- 
  1217. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1218. #    LaBRI              |                        #
  1219. #  351 cours de la Liberation    |  e-mail:  corsini@geocub.greco-prog.fr   #
  1220. #  33405 Talence Cedex         |  e-mail:  corsini@labri.u-bordeaux.fr    #
  1221. #                   |                        #
  1222. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1223. -- 
  1224.      There will be a sig when our local net is reliable.
  1225.            For now, I would rather stay anonymous.
  1226.  
  1227.